#include<iostream>
using namespace std;

struct RefQualifiers
{
	void func() &
	{
		cout<< "func &\n";
	}
	void func() &&
	{
		cout<< "func &&\n";
	}
};

int main(void)
{
	RefQualifiers r;
	r.func();
	
	RefQualifiers& rhl = r;
	rhl.func();
	
	RefQualifiers{}.func();
	
	return 0;
}
